 package com.framework.base.dialect;

import com.framework.base.taglib.page.Pagination;

 
/**
 * @Copyright @ 2013
 * All right reserved
 * @version 创建时间：Created on 2013-2-28
 * @author 作者：Create by www.51wuxia.com
 * @Email: 51wuxiacom@gmail.com
 * @description 作为分页方言的通用接口
 */

public interface Dialect {
	
	/**
	 * 用于组装分页查询条件
	 * @param paramsMap
	 * @param orderByFields
	 * @param orderType
	 * @return
	 * @throws Exception
	 */
	public String populatePageHQL(String queryString,String orderByFields,
			String orderType,Pagination page,String tableName) throws Exception;
	
	/**
	 * 用于分页时只查询记录数
	 * @param queryString
	 * @return
	 * @throws Exception
	 */
	public String populatePageHQL(String queryString,String tableName) throws Exception;
	
	
	/**
	 * 用于组装分页查询条件
	 * @param paramsMap
	 * @param orderByFields
	 * @param orderType
	 * @return
	 * @throws Exception
	 */
	public String populatePageHQL2(String queryString,String orderByFields,
			String orderType,Pagination page,String tableName) throws Exception;
	

	
	
}

